JavaScript - Hoisting
What is hoisting in JavaScript?​
Ans:
Hoisting occurs with variables and functions. hoisting - your function is available anywhere within the class
log(f1()); //hoisted
log(f2()); //not hoisted, not valid
function f1() {}
var f2 = function () {};